#include <Vector2D.h>

Vector2D v(2.3,0);
Vector2D v2(0,1);
Vector2D v3(1.7,3.8);
Vector2D v4(0,0);
void setup()
{
  Serial.begin(9600);
  
  Serial.println("v.scal(v2) should be 0 ");
  Serial.print("and is: ");
  Serial.println(v.scal(v2),DEC);
  Serial.println();
  Serial.println();
  Serial.println("v.det(v2) should be 2.3 ");
  Serial.print("and is: ");
  Serial.println(v.det(v2),DEC);
  Serial.println();
  Serial.println();
  Serial.println("v.norm() should be 2.3 ");
  Serial.print("and is: ");
  Serial.println(v.norm(),DEC);
  Serial.println();
  Serial.println();
  Serial.print("v.plus(v3)._x should be 4.0 ");
  Serial.print(" and is");
  Serial.println(v.plus(v3)._x,DEC);
  Serial.println();
  Serial.println();
  Serial.print("After previous v.plus(v3) call, v._y should be 3.8 ");
  Serial.print("and is: ");
  Serial.println(v._y,DEC);
  Serial.println();
  Serial.println();
  v2.mult(3.9);
  Serial.print("after calling v2.mult(3.9), (v2._x,v2._y) should be (0,3.9)");
  Serial.print("and is: (");
  Serial.print(v2._x);
  Serial.print(", ");
  Serial.print(v2._y);
  Serial.print(")");
}

void loop()
{
}
